org.eclipse.vtp.desktop.projects.core.internals
Class DependencySet

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.DependencySet
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IDependencySet, ObjectListener, IVoiceToolsResource

public class DependencySet
extends VoiceResource
implements IDependencySet

DependencySet.

Author:
Lonnie Pryor

Constructor Summary
DependencySet(IVoiceToolsDesignProject project, org.eclipse.core.resources.IFolder folder)
          Creates a new DependencySet.
 
Method Summary
 IDependency createDependency(java.lang.String name, java.net.URL content)
          Creates a new dependency in the application.
 java.util.List getDependencies()
          Returns the dependencies in this set.
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 void removeDependency(IDependency dependency)
          Removes a dependency from the application.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

DependencySet

public DependencySet(IVoiceToolsDesignProject project,
                     org.eclipse.core.resources.IFolder folder)
Creates a new DependencySet.

Parameters:
project -
folder -
Method Detail

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getDependencies

public java.util.List getDependencies()
Description copied from interface: IDependencySet
Returns the dependencies in this set.

Specified by:
getDependencies in interface IDependencySet
Returns:
The dependencies in this set.

createDependency

public IDependency createDependency(java.lang.String name,
                                    java.net.URL content)
Description copied from interface: IDependencySet
Creates a new dependency in the application.

Specified by:
createDependency in interface IDependencySet
Parameters:
name - The name to give the dependency resource.
content - The content of the dependency resource.
Returns:
The new dependency instance.

removeDependency

public void removeDependency(IDependency dependency)
Description copied from interface: IDependencySet
Removes a dependency from the application.

Specified by:
removeDependency in interface IDependencySet
Parameters:
dependency - The dependency to remove.